package com.example.demo;

import java.math.BigDecimal;

/**
 * @author linjingze
 * @date 2023/12/15 9:12 下午
 */
public class CustomerRowData implements Comparable<CustomerRowData> {

    private String customerName;


    private String sales;


    public BigDecimal volume;

    public CustomerRowData(String customerName, String sales, BigDecimal volume) {
        this.customerName = customerName;
        this.sales = sales;
        this.volume = volume;
    }

    public BigDecimal getVolume() {
        return volume;
    }

    public String getCustomerName() {
        return customerName;
    }

    public String getSales() {
        return sales;
    }

    @Override
    public int compareTo(CustomerRowData old) {
        return old.volume.compareTo(volume);
    }
}
